	<include file='Common:header' />

		<!-- /section:basics/navbar.layout -->
		<div class="main-container" id="main-container">

			<!-- #section:basics/sidebar -->

	<include file='Common:left' />
			<!-- /section:basics/sidebar -->
			<div class="main-content">
				<div class="main-content-inner">
					<div class="page-content">
					
							<div class="row maintop">
							<div class="col-xs-12 col-sm-1">
								<a href="{:U('get_user_list')}">
								<button class="btn btn-xs btn-danger" id="get_user_list">
									<i class="ace-icon fa fa-bolt bigger-110"></i>
										更新列表
								</button>
								</a>

							</div>

								<div class="col-xs-12 col-sm-3">
								<form name="admin_list_sea" class="form-search" method="post" action="__URL__/user_list">
									<div class="input-group">
										<span class="input-group-addon">
											<i class="ace-icon fa fa-check"></i>
										</span>
										<input type="text" name="key" id="key" class="form-control search-query admin_sea" value="{$val}" placeholder="输入昵称" />
										<span class="input-group-btn">
											<button type="submit" class="btn btn-xs  btn-purple">
												<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
												搜索
											</button>
										</span>
									</div>
								</form>
								</div>

								  <div class="input-group-btn">
									<a href="__URL__/user_list">
									<button type="button" class="btn btn-xs  btn-purple">
										<span class="ace-icon fa fa-globe icon-on-right bigger-110"></span>
										显示全部	
									</button>
									</a>
								  </div>
								  <div class="input-group-btn">
									<span class="btn btn-xs btn-danger">点击【更新列表】后请等待，页面自动刷新后表示读取完成，这可能需要一段时间。</span>
									</div>

							</div>

							<div class="row">
							    <div class="col-xs-12">
										<div>
											<table width="100%" class="table table-striped table-bordered table-hover" id="dynamic-table">
												<thead>
													<tr>
													  <th width="6%">ID</th>
													  <th width="28%">昵称</th>
													  <th width="7%">性别</th>
													  <th width="12%">城市</th>
													  <th width="22%">关注时间</th>
													  <th width="25%">头像</th>
													 <!--  <th width="15%" style="border-right:#CCC solid 1px;">操作</th> -->
												  </tr>
												</thead>

												<tbody>
                                                
                                                <foreach name="user_list" item="v">
													<tr>
														<td height="28" >{$v.id}</td>
														<td>{$v.nickname}</td>
														<td align="center"><if condition="$v.sex eq 1">男<elseif condition="$v.sex eq 2"/>女<else/>未知</if></td>
														<td align="center"><if condition="$v.city eq '' ">未知<else/>{$v.city}</if></td>
														
														<td align="center">{$v.time}</td>
														<td ><a class="thumbnew" href="#"><span id="mainCon" class="label label-success arrowed">鼠标经过，查看头像<img src="{$v.head}"  width="300"/></span></a></td>

<style type="text/css">
.thumbnew img{position:absolute;left:0px;visibility:hidden;padding:5px;z-index:9999;}
.thumbnew:hover img{visibility:visible;top:20px;left:0px;}
</style>
							<!-- 							<td>
								<div class="hidden-sm hidden-xs action-buttons">
									<a class="green"  href="{:U('member_list_edit',array('id'=>$v['id']))}" title="修改">
										<i class="ace-icon fa fa-pencil bigger-130"></i>
									</a>
									<a class="red" href="javascript:;" onclick="return del({$v.id},{:I('p',1)});" title="删除">
										<i class="ace-icon fa fa-trash-o bigger-130"></i>
									</a>
								</div>
														</td> -->
													</tr>
                                                 </foreach>  
                                                  <tr>
													  <td height="50" colspan="9" align="left">{$page}</td>
												  </tr>
												</tbody>
										  </table>
										  
							    		</div>
									</div>
								</div>

<include file='Common:header_nav' />

					</div><!-- /.page-content -->
				</div>
			</div><!-- /.main-content -->

<script>
function del(id,p){
	layer.confirm('你确定要删除吗？', {icon: 3}, function(index){
	layer.close(index);
	window.location.href="__URL__/member_list_del/id/"+id+"/p/"+p+"";
	});
}
// $("#get_user_list").click(function(){
// 	$.ajax({
//                 type:"post",
//                 url:'{:U("get_user_list")}',//后端地址
//                 dataType:'json',
//                 success: function(data)
//                  {
//                  	alert(JSON.stringify(data));
//                          if(data.status==1){
// 							layer.alert(data.info, {icon: 6});
// 							}else{
// 							layer.alert(data.info, {icon: 6});
// 						}
//                 },
//                 error:function(){
//                      alert("请求失败");
//                 }
//             });
// });

function stateyes(val){
		  $.post('{:U("member_list_state")}',
		  {x:val},
	function(data){
		if(data.status){
			if(data.info=='状态禁止'){
				var a='<button class="btn btn-minier btn-danger">状态禁用</button>'
				$('#zt'+val).html(a);
				layer.alert(data.info, {icon: 5});
				return false;
			}else{
				var b='<button class="btn btn-minier btn-yellow">状态开启</button>'
				$('#zt'+val).html(b);
				layer.alert(data.info, {icon: 6});
				return false;
			}
		}
	});
	return false;
}


</script>
	<include file='Common:footer' />


<link href="__PUBLIC__/shearphoto_common/css/ShearPhoto.css" rel="stylesheet" type="text/css" media="all">
<script  type="text/javascript" src="__PUBLIC__/shearphoto_common/js/ShearPhoto.js" ></script>
<script  type="text/javascript"  src="__PUBLIC__/shearphoto_common/js/webcam_ShearPhoto.js" ></script>
<script  type="text/javascript"  src="__PUBLIC__/shearphoto_common/js/alloyimage.js" ></script>
<script  type="text/javascript"  src="__PUBLIC__/shearphoto_common/js/handle.js" ></script>
      </div><!-- /.modal-content -->
   </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script>
function model_pic(id){
	 $('#userid').val(id);
}
</script>
		</div><!-- /.main-container -->
	</body>
</html>
